﻿#include "commentinfo.h"

CommentInfo::CommentInfo()
{

}

CommentInfo::CommentInfo(QString comment, QString user, QString star, QString hotel,
                             QString hotelName, QString houseType, QString checkInTime,
                             QString commentTime, QString userComment, QString reserveID,
                         QString photo, QString hotelComment)
{
    m_comment = comment;
    m_user = user;
    m_star = star;
    m_hotel = hotel;
    m_reserveID = reserveID;

    m_hotelName = hotelName;
    m_houseType = houseType;
    m_checkInTime = checkInTime;
    m_commentTime = commentTime;
    m_userComment = userComment;

    m_photo = photo;
    m_hotelComment = hotelComment;
}

const QString& CommentInfo::getComment() const
{
    return  m_comment;
}
const QString& CommentInfo::getUser() const
{
    return  m_user;
}
const QString& CommentInfo::getStar() const
{
    return  m_star;
}
const QString& CommentInfo::getPhoto() const
{
    return  m_photo;
}
const QString& CommentInfo:: getHotel() const
{
    return  m_hotel;
}
const QString& CommentInfo:: getReserveID() const
{
    return  m_reserveID;
}
const QString& CommentInfo::getHotelName() const
{
    return  m_hotelName;
}
const QString& CommentInfo:: getHouseType() const
{
    return  m_houseType;
}
const QString& CommentInfo::getCheckInTime() const
{
    return  m_checkInTime;
}
const QString& CommentInfo::getCommentTime() const
{
    return  m_commentTime;
}
const QString& CommentInfo::getUserComment() const
{
    return  m_userComment;
}
const QString& CommentInfo::getHotelComment() const
{
    return  m_hotelComment;
}

void CommentInfo::setComment(const QString& comment)
{
    m_comment = comment;
}
void CommentInfo::setUser(const QString& user)
{
    m_user = user;
}
void CommentInfo::setStar(const QString& star)
{
    m_star = star;
}
void CommentInfo::setPhoto(const QString& path)
{
    m_photo = path;
}
void CommentInfo::setHotel(const QString& hotel)
{
    m_hotel = hotel;
}
void CommentInfo::setReserveID(const QString& reserveID)
{
    m_reserveID = reserveID;
}
void CommentInfo::setHotelName(const QString& hotelName)
{
    m_hotelName = hotelName;
}
void CommentInfo::setHouseType(const QString& houseType)
{
    m_houseType = houseType;
}
void CommentInfo::setCheckInTime(const QString& checkInTime)
{
    m_checkInTime = checkInTime;
}
void CommentInfo::setCommentTime(const QString& commentTime)
{
    m_commentTime = commentTime;
}
void CommentInfo::setUserComment(const QString& userComment)
{
    m_userComment = userComment;
}
void CommentInfo::setHotelComment(const QString& hotelComment)
{
    m_hotelComment = hotelComment;
}
